import type { IconTemplates } from '../../types'

const modules = import.meta.glob('./*.svg', { eager: true })
const icons: Record<string, any> = {}
Object.keys(modules).forEach((k) => {
  const key = k.replace('./', '').replace('.svg', '')
  icons[key] = (modules as any)[k].default
})

const buttonList: IconTemplates = [
  {
    value: 1,
    label: '样式1',
    icon: icons.button_1
  },
  {
    value: 2,
    label: '样式2',
    icon: icons.button_2
  },
  {
    value: 3,
    label: '样式3',
    icon: icons.button_3
  }
]

export default buttonList
